import request from '@/utils/request'

// 查询我的套餐列表
export function listMytaocan(query) {
  return request({
    url: '/hatha/mytaocan/list',
    method: 'get',
    params: query
  })
}

// 查询我的套餐详细
export function getMytaocan(id) {
  return request({
    url: '/hatha/mytaocan/' + id,
    method: 'get'
  })
}

// 新增我的套餐
export function addMytaocan(data) {
  return request({
    url: '/hatha/mytaocan',
    method: 'post',
    data: data
  })
}

// 修改我的套餐
export function updateMytaocan(data) {
  return request({
    url: '/hatha/mytaocan',
    method: 'put',
    data: data
  })
}

// 删除我的套餐
export function delMytaocan(id) {
  return request({
    url: '/hatha/mytaocan/' + id,
    method: 'delete'
  })
}
